class AcademicDegree < ActiveRecord::Base
  has_many :educational_plans
  has_many :teachers

  validates_presence_of :name, :abbreviation, :ordering
  validates_uniqueness_of :name, :ordering
  validates_numericality_of :ordering, :only_integer => true, :greater_than => 0
end
